<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
		<title>用户组表单 -- Powered by CentIMS {$core_version}</title>
		<link href="{'bootstrap/css/bootstrap.css'|shared}" rel="stylesheet"/>
		<link href="{'bootstrap/css/bootstrap-responsive.css'|shared}" rel="stylesheet"/>
		<link href="{'common.css'|shared}" rel="stylesheet"/>
		{'group_form_head'|fire}
	</head>
	<body>
		<div class="workspace">
			<ul class="nav nav-tabs">
				<li>&nbsp;&nbsp;</li>	
			    <li><a href="./"><i class="icon-list-alt"></i>组列表</a></li>
			    <li><a href="./?Ctlr=AddGroup"><i class="icon-plus"></i>新增组</a></li>
			    <li class="active"><a href="#"><i class="icon-edit"></i>编辑组:{$gname}</a></li>
		    </ul>
		    {if $page_tip_info}
		    <div class="alert {$alert_cls}">
		        <button class="close" data-dismiss="alert">×</button>
		        {$page_tip_info}
	      	</div>
	      	{/if}
		</div>
		<div>			
			<form class="form-horizontal" id="group-form" method="POST" action="./?Ctlr=SaveGroup">
				<input type="hidden" name="gid" id="gid" value="{$gid}"/>
	        	<fieldset>          		
	          		<div class="control-group">
	          			<label class="control-label" for="gname">用户组标识</label>
	            		<div class="controls">
	              			<input type="text" id="gname" value="{$gname}" disabled="disabled">
	            		</div>
	          		</div> 
	          		<div class="control-group {$error_cls.name}">
	            		<label class="control-label" for="name">用户组名</label>
	            		<div class="controls">
	              			<input type="text" id="name" name="name" value="{$name}">
	              			<span class="help-inline">{$error.name}</span>
	            		</div>
	          		</div>
	          		<div class="control-group {$error_cls.type}">
	            		<label class="control-label" for="type">组类别</label>
	            		<div class="controls">
	            			<select name="type" readonly="readonly">
	            				{html_options options=$group_types selected=$type}
	            			</select>
	              			<span class="help-inline">{$error.type}</span>
	            		</div>
	          		</div>
	          		{'core_group_form'|fire:$group}
	          		<div class="control-group">
	            		<label class="control-label" for="note">备注</label>
	            		<div class="controls">
	              			<textarea class="input-xlarge" name="note" id="note" rows="3">{$note}</textarea>
	            		</div>
	          		</div>	          		
		          	<div class="form-actions">
		            	<button type="submit" class="btn btn-primary">保存</button>
		            	<a href="./" class="btn">取消</a>
		          	</div>
	        	</fieldset>
	      	</form>
      	</div>
		<script type="text/javascript" src="{'jquery-1.7.1.js'|jquery}"></script>
		<script type="text/javascript" src="{'bootstrap/bootstrap.js'|shared}"></script>
		<script type="text/javascript" src="{'plugins/jquery.validate.js'|jquery}"></script>
		<script type="text/javascript" src="group.js"></script>
		{'group_form_foot'|fire}
	</body>
</html>